/*!
 * \file GapGlobals.h
 * \brief Global definitions for GAP protocol
 */

#ifndef MGW_GAP_GLOBALS_H
#define MGW_GAP_GLOBALS_H

#include "MgwGlobals.h"
#include "EventData.h"
#include "GAP.pb.h"
#include "map"

namespace tsc
{
namespace mgw
{

using common::SIGNO;
using common::SIGNAL_BASE;
using namespace GatewayApplicationPart;

//===================================================================
// GatewayApplicationPart signal numbers
//===================================================================

const SIGNO GAP_CONNECT_CFM = GAP_SIGNAL_BASE + GAP_PDU_CONNECT_CFM;
const SIGNO GAP_CONNECT_REJ = GAP_SIGNAL_BASE + GAP_PDU_CONNECT_REJ;

const SIGNO GAP_ECHO_REQUEST =
		GAP_SIGNAL_BASE + GAP_PDU_ECHO_REQ;

const SIGNO GAP_MEDIA_BEARER_RELEASE =
        GAP_SIGNAL_BASE + GAP_PDU_MEDIA_BEARER_RELEASE;

const SIGNO GAP_MEDIA_BEARER_SETUP_REQ =
        GAP_SIGNAL_BASE + GAP_PDU_MEDIA_BEARER_SETUP_REQ;


const SIGNO GAP_T709_EXPIRED =
        GAP_SIGNAL_TIMER_BASE + 1;

const SIGNO GAP_T711_EXPIRED =
        GAP_SIGNAL_TIMER_BASE + 2;
//===================================================================
// Timers
//===================================================================
const unsigned long T_709_VALUE = 10000; // 10s
const unsigned long T_711_VALUE = 60000; // 10s

const uint32_t GAP_MGW_INITIAL_ID = 0xFFFFFFFF;

} // namespace sgw
} // namespace tsc

#endif // SGW_GAP_GLOBALS_H
